home *** CD-ROM | disk | FTP | other *** search
- if(target == 1)
- {
- targetX = _root.chara01._x - _root.enemy._x;
- }
- if(target == 2)
- {
- targetX = _root.chara02._x - _root.enemy._x;
- }
- if(target == 3)
- {
- targetX = _root.chara03._x - _root.enemy._x;
- }
- _X = 15;
- _Y = 20;
- a = 0;
- dsize = 0;
- this.onEnterFrame = function()
- {
- a += 0.5;
- _Y = _Y + a;
- if(_X != targetX)
- {
- dx = (_X - targetX) / 10;
- _X = _X - dx;
- }
- dsize += 0.1;
- _width = _width + dsize;
- _height = _height + dsize;
- if(_Y + _root.enemy._y > _global.defY)
- {
- _global.depth = _global.depth + 1;
- newname = "bakuhatu" + _global.depth;
- props = {_x:this._x + _root.enemy._x,_y:_global.defY};
- _root.attachmovie("bakuhatu1",newname,depth,props);
- _root.mySound.attachSound("s_bakuhatu.wav");
- _root.mySound.start([0,1]);
- this.removeMovieClip();
- }
- };
-